<template>
	<view>
		<uni-popup ref="popup" type="bottom" background-color="#fff">
			<view class="padding">
				<view v-for="(item,index) in dataList" :key="index">
					<view v-if="item.filters" class="row">
						{{ item.label }}:{{ item.value?item.filters[item.value] :'暂无' }}
					</view>
					<view v-else class="row">
						{{ item.label }}:{{ item.value||'暂无'  }}
					</view>
				</view>
				<view><button class="bg-blue" @click="close">确定</button></view>
			</view>
		</uni-popup>
	</view>
</template>
<script>
	export default {
		props: {
			dataList: {
				type: Array,
				default: () => [],
			},
		},
		data() {
			return {
				// item: [],
			};
		},
		methods: {
			show() {
				this.$refs.popup.open();
			},
			close() {
				this.$refs.popup.close();
			}
		},
		mounted() {
			// this.$refs.popup.open()
		},
	};
</script>
<style scoped>
	.row {
		padding: 10rpx 0;
	}
</style>